import request from '@/utils/request'

// 查询面试流程附件列表
export function listAttr(query) {
  return request({
    url: '/process/attr/list',
    method: 'get',
    params: query
  })
}

// 查询面试流程附件详细
export function getAttr(id) {
  return request({
    url: '/process/attr/' + id,
    method: 'get'
  })
}

// 新增面试流程附件
export function addAttr(data) {
  return request({
    url: '/process/attr',
    method: 'post',
    data: data
  })
}

// 修改面试流程附件
export function updateAttr(data) {
  return request({
    url: '/process/attr',
    method: 'put',
    data: data
  })
}

// 删除面试流程附件
export function delAttr(ids) {
  return request({
    url: '/process/attr/' + ids,
    method: 'delete'
  })
}

// 导出面试流程附件
export function exportAttr(query) {
  return request({
    url: '/process/attr/export',
    method: 'get',
    params: query
  })
}